﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using SqlSugar;

namespace Admin.NET.Application.Entity;

/// <summary>
/// 收藏信息实体类
/// </summary>
[SugarTable("base_favorites", "收藏信息")]
public class FavoriteEntity : EntityBase
{
    /// <summary>
    /// 收藏标题
    /// </summary>
    [SugarColumn(ColumnDescription = "收藏标题", Length = 50, IsNullable = false)]
    public string Title { get; set; }
    /// <summary>
    /// 收藏项ID
    /// </summary>
    [SugarColumn(ColumnName = "item_id")]
    public long ItemId { get; set; }

    /// <summary>
    /// 收藏类型 (1:房产 2:租房 3:其他)
    /// </summary>
    [SugarColumn(ColumnName = "item_type")]
    public int ItemType { get; set; }

    /// <summary>
    /// 封面图片URL
    /// </summary>
    [SugarColumn(ColumnName = "cover_image", Length = 255, IsNullable = true)]
    public string CoverImage { get; set; }

    /// <summary>
    /// 价格/租金
    /// </summary>
    [SugarColumn(ColumnName = "price",   IsNullable = true)]
    public string Price { get; set; }

    /// <summary>
    /// 位置信息
    /// </summary>
    [SugarColumn(ColumnName = "location", Length = 100, IsNullable = true)]
    public string Location { get; set; }
    /// <summary>
    /// 跳转地址
    /// </summary>
    [SugarColumn(ColumnName = "link_path", Length = 255, IsNullable = true)]
    public string LinkPath { get; set; }
}
